﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hugo.UIOptions
{
    class TileUIPageShift : UIOption
    {
        bool shiftLeft;

        public TileUIPageShift(bool shiftLeft)
            : base(shiftLeft ? "Left" : "Right", shiftLeft ? Util.getBitmapSource(Properties.Resources.left) : Util.getBitmapSource(Properties.Resources.right))
        {
            this.shiftLeft = shiftLeft;
        }

        public override void wasSelected()
        {
            if (shiftLeft)
            {
                MainWindow.getInstance().getCurrentPage().shiftLeft();
            }
            else
            {
                MainWindow.getInstance().getCurrentPage().shiftRight();
            }
        }

    }
}
